const deleteById = {
    deleteVal (data, id) {
        let result = []
        for(let i=0; i<data.length; i++){
            if(data[i]['id'] != id){
                result.push(data[i])
            }
        }
        return result
    },
    deleteVals (data, idList) {
        let result = []
        result = data.filter(val => !idList.includes(val.id))
        return result
    }
}
export default deleteById